
<div class="fabu">
        <span>发布评论</span>
  		<form id="w_form" action="#" method="post" onsubmit="return false;" style="overflow: hidden ;width: 100%;">
        	<textarea id="i_content" name=""  class="te1" ></textarea>
            <input id="w_save" name="" type="button" class="te2"  value="提交" onclick="msgSubmite()">
        </form>	
        </div>
   
<script type="text/javascript">     
  
    $(document).ready(function(){
      
    });
   

     var insert_signal=0;    
     function msgSubmite(){  
         if(insert_signal==0){
         var content=$('#i_content').val();         
       if(content == '' || content == undefined){
           alert('请填写留言内容');
           insert_signal=0; 
           return; }  
         var I_json='&content='+content;
         var url='<?php echo CHtml::normalizeUrl(array("Msgbox/AdvInsert")); ?>';
           $.ajax({
           type:'post',
           url:url,
           data:I_json,
           success:function(data){ 
               if(data>0){ 
                   var alertmsg='您的意见已发送成功，感谢您的支持。';  
                   alert(alertmsg);
                   $('#i_title').val("");
                   $('#i_author').val("");
                   $('#i_content').val("");
               }
           }
           });
           insert_signal=0;
           }else{
                 alert('提交中请稍后');
                 return;
           }           
    }    //------------------
    
    
</script>
